package com.example.idachuappone.index.entity;

import java.io.Serializable;
import org.json.JSONObject;

public class HotServiceItem implements Serializable {
    private String bespeak_num;
    private String first_img;
    private String id;
    private String name;
    private String people_num;
    private String price;

    public HotServiceItem parseJson(JSONObject json) {
        if (json == null) {
            return null;
        }
        if (json.has("id")) {
            this.id = json.optString("id");
        }
        if (json.has("name")) {
            this.name = json.optString("name");
        }
        if (json.has("people_num")) {
            this.people_num = json.optString("people_num");
        }
        if (json.has("bespeak_num")) {
            this.bespeak_num = json.optString("bespeak_num");
        }
        if (json.has("price")) {
            this.price = json.optString("price");
        }
        if (!json.has("first_img")) {
            return this;
        }
        this.first_img = json.optString("first_img");
        return this;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPeople_num() {
        return this.people_num;
    }

    public void setPeople_num(String people_num) {
        this.people_num = people_num;
    }

    public String getBespeak_num() {
        return this.bespeak_num;
    }

    public void setBespeak_num(String bespeak_num) {
        this.bespeak_num = bespeak_num;
    }

    public String getPrice() {
        return this.price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getFirst_img() {
        return this.first_img;
    }

    public void setFirst_img(String first_img) {
        this.first_img = first_img;
    }
}
